/**
 * Copyright (c) 2024 Huawei Technologies Co., Ltd.
 * This file is a part of the CANN Open Software.
 * Licensed under CANN Open Software License Agreement Version 1.0 (the "License").
 * Please refer to the License for details. You may not use this file except in compliance with the License.
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
 * See LICENSE in the root of the software repository for the full text of the License.
 */

/*!
 * \file matmul_antiquant_processor.h
 * \brief matmul variable manager
 */

#ifndef IMPL_MATMUL_MODULES_MATMUL_ANTIQUANT_PROCESSOR_H
#define IMPL_MATMUL_MODULES_MATMUL_ANTIQUANT_PROCESSOR_H

#include "../matmul_module.h"

namespace matmul {
template <typename IMPL, const auto &MM_CFG, class INPUT_TYPE>
class MatmulAntiQuantProcessor {
    using TransT = typename INPUT_TYPE::TRANS_T;
public:
#if __CCE_AICORE__ == 200
    __aicore__ inline LocalTensor<TransT> GetAntiQuantOffsetTensor() const
    {
        return MATMUL_CONST_PARAM_VAR.antiQuantOffsetTensor_;
    }

    __aicore__ inline LocalTensor<TransT> GetAntiQuantScaleTensor() const
    {
        return MATMUL_CONST_PARAM_VAR.antiQuantScaleTensor_;
    }

    __aicore__ inline TransT GetAntiQuantOffsetScalar() const
    {
        return MATMUL_CONST_PARAM_VAR.antiQuantOffsetScalar_;
    }

    __aicore__ inline TransT GetAntiQuantScaleScalar() const
    {
        return MATMUL_CONST_PARAM_VAR.antiQuantScaleScalar_;
    }
#endif
};
}      // namespace matmul
#endif // IMPL_MATMUL_MODULES_MATMUL_ANTIQUANT_PROCESSOR_H
